import {registerMicroApps, start} from 'qiankun'

const loader = (loading) => {
    console.log(loading)
}
registerMicroApps([
        {
            name: 'm-vue3',
            entry: '//localhost:30000',
            container: '#container',
            activeRule: '/m-vue3',
            loader
        },
        {
            name: 'm-vue2',
            entry: '//localhost:20000',
            container: '#container',
            activeRule: '/m-vue2',
            loader
        }
    ], {
        beforeLoad: () => {
            console.log('加载前')
        }, beforeMount: () => {
            console.log('挂载前')
        }, afterMount: () => {
            console.log('挂载后')
        }, beforeUnmount: () => {
            console.log('销毁前')
        }, afterUnmount: () => {
            console.log('销毁后')
        },
    }
)
start(
//     {
//     sandbox:{
//         // 样式隔离
//         // experimentalStyleIsolation:true,
//         strictStyleIsolation:true
//     }
// }
)